#include "Http.hpp"

// 
int main(int argc, char *argv[]) 
{
    // 检查输入格式
    if (argc != 2)
    {
        std::cout << "输入格式错误! Usage: " << argv[0] << " port" << std::endl;
        exit(USAGE_ERR);
    }

    uint16_t port = std::stoi(argv[1]); // 获取输入端口号

    // 创建http对象
    std::unique_ptr<Http> httpsvr = std::make_unique<Http>(port);

    httpsvr->Start(); // 启动http服务
    
    return 0;
}

